﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Security;
using System.Runtime.InteropServices;

namespace System.Peppers.ShellExtensions
{
    [SuppressUnmanagedCodeSecurity, ComImport, InterfaceType(ComInterfaceType.InterfaceIsIUnknown), Guid("000214e4-0000-0000-c000-000000000046")]
    internal interface IContextMenu
    {
        [PreserveSig]
        uint QueryContextMenu(IntPtr hMenu, uint iMenu, uint idCmdFirst, uint idCmdLast, CMF uFlags);
        [PreserveSig]
        uint InvokeCommand(IntPtr pici);
        [PreserveSig]
        uint GetCommandString(UIntPtr idCmd, GCS uFlags, IntPtr pwReserved, [MarshalAs(UnmanagedType.LPStr)]StringBuilder pszName, uint cchMax);
    }   
}